package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.BatchFlow;
import com.indusfo.spc.pojo.BatchFlow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author liub
 * @Date 2019/12/4 15:55
 * @Version 1.0
 */

public interface BatchFlowMapper {
    /**
     * 新增
     */
    int insertBatchFlow(BatchFlow batchFlow);

    /**
     * 修改
     */
    int updateBatchFlow(BatchFlow batchFlow);

    /**
     * 查询
     */
    List<BatchFlow> queryBatchFlow(BatchFlow batchFlow);

    /**
     * 总数
     */
    int countBatchFlow(BatchFlow batchFlow);

    /**
     * 判重
     */
    int checkBatchFlow(BatchFlow batchFlow);

    /**
     * 启停
     */
    int deleteBatchFlow(@Param("batchFlowIds") List<Integer> batchFlowIds, @Param("dataState") Integer dataState);

    /**
     * 批处流程维修下工序查询
     */
    List<BatchFlow> queryBatchFlowToInsert(BatchFlow batchFlow);

    /**
     * 批处流程维修下工序查询总数
     */
    Integer countBatchFlowToInsert(BatchFlow batchFlow);
}